N=int(input())
l1=['A']
for i in range(1,N):
    l2=[]
    l2.extend(l1)
    l1.append(chr(65+i))
    l1.extend(l2)
for i in range(len(l1)):
    print(l1[i],end="")
